<?php $this->start('admin_menu')?>
	<?php echo $this->element('admin_menu', array('str_item' => 'users')) ?>
<?php $this->end(); ?>
<div class="users form">
	<h1><?php echo __('Add User'); ?></h1>
	<?php echo $this->Form->create('User'); ?>
	<?php if(isset($agent_id)){
		echo $this->Form->input('agent_id', array('type' => 'hidden', 'value' => $agent_id));
	}
	 ?>
	<table class='form-table'>
		<tr>
			<td class='left-cl-style'>Email<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('email', array('label' => false, 'value' => isset($email) ? $email : '' )); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Password<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('password', array('label' => false));?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Confirm Password</td>
			<td class='right-cl-style'><?php echo $this->Form->input('passwd_confirm', array('label' => false, 'type' => 'password'));?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>First name<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('first_name', array('label' => false));?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Last name<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('last_name', array('label' => false));?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Phone</td>
			<td class='right-cl-style'><?php echo $this->Form->input('phone', array('label' => false));?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Role</td>
			<td class='right-cl-style'><?php echo $this->Form->input('role_id', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style no-border no-background'>
				(<span class='red-star'>*</span>) Required
			</td>
			<td class='right-cl-style actions no-border no-background'><?php echo $this->Form->end(__('Submit')); ?></td>
		</tr>
	</table>
</div>

<div class='actionct'><span class='btn-act'><span><?php echo $this->Html->link(__('List Users'), array('action' => 'index'), array('class' => 'back-act')); ?></span></span></div>
